#include "usart.h"

void BSP_UsartSendByte(USART_TypeDef* usartPort, uint8_t data){
    USART_SendData(usartPort, (uint16_t) data);
    while(USART_GetFlagStatus(usartPort, USART_FLAG_TXE) == RESET);
}

void BSP_UsartSendStr(USART_TypeDef* usartPort, uint8_t *str){
    uint8_t *p;
    for(p = str; (*p)!= 0x00; p++){
        BSP_UsartSendByte(usartPort, (*p));
    }
}
